import App from "@/App";
import uView from "uview-ui";
Vue.use(uView);
import http from "@/api/index";
import util from "@/common/util";
import store from "@/store";
import config from "@/config/index.js";
import Vue from "vue";
import VueI18n from "vue-i18n";
import Nav from "@/common/nav.js";
import qs from "qs";
import "././static/iconfont/ralewayfont.css";
import "././static/iconfont/montsfont.css";
import "././static/iconfont/archivofont .css";

Vue.use(VueI18n);
const i18n = new VueI18n({
  locale: uni.getStorageSync("lang") ? uni.getStorageSync("lang") : "zh",
  silentFallbackWarn: true,
  messages: {
    // cn: require("./static/language/zhc"), //中文简体体
    en: require("./static/language/en"), //英文语言
    zh: require("./static/language/zhf"), //中文繁体
    ja: require("./static/language/ja"), //日文语言
    ko: require("./static/language/ko"), //韩国语言
    vi: require("./static/language/vi"), //越南语言
    th: require("./static/language/th"), //泰国语言
    es: require("./static/language/es"), //西班牙语言
  },
});
Vue.config.productionTip = false;
// uni.getSystemInfoSync().platform !== "devtools" && (console.log = () => {});
App.mpType = "app";
Vue.prototype.$config = config;
Vue.prototype.$dianji = util.dianji;
Vue.prototype.$store = store;
Vue.prototype.$http = http;
Vue.prototype.$util = util;
Vue.prototype.$qs = qs;

const app = new Vue({
  store,
  ...App,
  i18n,
});
app.$mount();
